package com.laihui.activity;

import android.app.Activity;
import android.widget.TextView;

import com.laihui.activity.R;
import com.laihui.base.BaseActivity;
import com.laihui.utils.YXDate;
import com.laihui.view.TopBar;

import butterknife.BindView;

/**
 * 注册第一个页面
 */
public class WithDrawSuccesActivity extends BaseActivity {
    @BindView(R.id.topbar)//topbar
            TopBar topbar;
    @BindView(R.id.tv_money)//银行卡logo
            TextView tvMoney;
    @BindView(R.id.tv_time)//银行卡
            TextView tvTime;

    @BindView(R.id.tv_bank)//银行卡
            TextView tvBank;
    @Override
    public void init() {
        String name = getIntent().getStringExtra("lastname")  ;
        String bank = getIntent().getStringExtra("bank")  ;
        String money = getIntent().getStringExtra("money")  ;
        topbar.setOnTopbarClickListener(new TopBar.topbarClickListener() {
            @Override
            public void leftClick() {
                finish();
            }

            @Override
            public void rightClick() {

            }
        });

        tvMoney.setText(money+"元");
        tvBank.setText(bank+name);
       // YXDate.getDayTime()
        tvTime.setText("预计到账时间:"+YXDate.getTomorrow()+"下午3点");

    }


    @Override
    public int getLayoutId() {
        return R.layout.activity_with_draw_success;
    }

    @Override
    public Activity bindActivity() {
        return this;
    }



    @Override
    protected void onDestroy() {
        super.onDestroy();

    }
}
